package com.wangrui.client.data;

import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.fields.DataSourceFloatField;
import com.smartgwt.client.data.fields.DataSourceIntegerField;
import com.smartgwt.client.data.fields.DataSourceTextField;

public class SipfA01XmlDS extends DataSource{
	
	public static SipfA01XmlDS instance = null;  
	

	public static SipfA01XmlDS getInstance(){
		
		if(instance == null){
			
			instance = new SipfA01XmlDS("sipfa01");
		}
		
		return instance;
	}

	public SipfA01XmlDS(String Id) {

		setID(id);   
        setTitleField("sipfa01");   
        setRecordXPath("/sipfa01/ROW");   
        DataSourceTextField oc_dateField = new DataSourceTextField("OC_DATE", "日期", 128);   
        DataSourceTextField zqgsdmField = new DataSourceTextField("ZQGSDM", "证券公司代码");   
        DataSourceTextField zqgsmcoField = new DataSourceTextField("ZQGSMC", "证券公司名称");   
        DataSourceTextField jscyrdmField = new DataSourceTextField("JSCYRDM", "JSCYRDM", 128);   
        DataSourceTextField jjxsrdmField = new DataSourceTextField("JJXSRDM", "JJXSRDM", 128);   
        DataSourceTextField jscyrqsbhField = new DataSourceTextField("JSCYRQSBH", "JSCYRQSBH", 40);   
        DataSourceFloatField jscyrjszhField = new DataSourceFloatField("JSCYRJSZH", "JSCYRJSZH");   
        DataSourceTextField sjrqField = new DataSourceTextField("SJRQ", "SJRQ", 128);   

  
        setFields(oc_dateField, zqgsdmField, zqgsmcoField, jscyrdmField, jjxsrdmField,   
        		jscyrqsbhField, jscyrjszhField, sjrqField);   
  
        setDataURL("ds/sipfa01.ds.xml");   
        setClientOnly(true); 
	}

}
